/**
 * @ClassName LC33
 * @Author ykx
 * @Date 2024/3/13 23:34
 * @Version 1.0
 */
public class LC33 {
    public int search(int[] nums, int target) {
        for (int i = 0; i < nums.length; i++) {
            if (nums[i] == target) {
                return i;
            }
        }
        return -1;
    }
}
